import { createContext } from 'react';

/** 这个需要配置 */
export const demoList = ["Cascader", "Collapse", 'Button', 'Icon', 'AutoCenter'] as const;

export type DemoList = typeof demoList[number];

export const GlobalContext = createContext<{
  /** 当前预览的组件名 */
  componentName: string
  /** 改变当前预览的组件名 */
  setComponentName: Function
}>({
  componentName: 'Cascader',
  setComponentName: () => {},
})

